{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## starProbeFinal使用说明\n",
    "- 测试条件\n",
    "    - PMOSTRANS和NMOSTRANS是测试条件，可以修改测试名称，起止电压，源漏电压，以及GDS所用的通道。\n",
    "- 样品特征\n",
    "    - dies:样品的有效晶体颗粒数\n",
    "    - lines:需要测试的行数\n",
    "    - lineOffset：行间距\n",
    "- positions\n",
    "    - 这里指的是开关矩阵的设置，可选1，2，3三个位置"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "ename": "SyntaxError",
     "evalue": "f-string: unmatched '[' (starAutoProbe.py, line 228)",
     "output_type": "error",
     "traceback": [
      "Traceback \u001b[1;36m(most recent call last)\u001b[0m:\n",
      "\u001b[0m  File \u001b[0;32md:\\Anaconda3\\envs\\starEnv\\lib\\site-packages\\IPython\\core\\interactiveshell.py:3526\u001b[0m in \u001b[0;35mrun_code\u001b[0m\n    exec(code_obj, self.user_global_ns, self.user_ns)\u001b[0m\n",
      "\u001b[1;36m  Cell \u001b[1;32mIn[1], line 1\u001b[1;36m\n\u001b[1;33m    from starAutoProbe import *\u001b[1;36m\n",
      "\u001b[1;36m  File \u001b[1;32md:\\SpectreWeb\\文件中转站\\starProbe\\starAutoProbe.py:228\u001b[1;36m\u001b[0m\n\u001b[1;33m    fn = f'{test['name']}-LINE{line}-{str(position)}'\u001b[0m\n\u001b[1;37m                  ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m f-string: unmatched '['\n"
     ]
    }
   ],
   "source": [
    "from starAutoProbe import *\n",
    "%matplotlib qt\n",
    "\n",
    "PMOSTRANS = {\"name\":'PMOS',\"startV\":-2, \"endV\":0.5,\"Vds\":-2,\n",
    "            \"chnSource\":'1',\"chnDrain\":'2',\"chnGate\":'3'}\n",
    "NMOSTRANS = {\"name\":'NMOS',\"startV\":2, \"endV\":-0.5,\"Vds\":2,\n",
    "            \"chnSource\":'4',\"chnDrain\":'2',\"chnGate\":'3'}\n",
    "FZ1 = {\"dies\":58,\"lines\":3,\"lineOffset\":0.342}\n",
    "FZ2 = {\"dies\":50,\"lines\":6,\"lineOffset\":0.249}\n",
    "\n",
    "autoTest(transCurve,[PMOSTRANS,NMOSTRANS],**FZ2,positions=[1,2,3])\n",
    "closeIns()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "MPI Prober Station Link Error!\n",
      "VI_ERROR_RSRC_NFOUND (-1073807343): Insufficient location information or the requested device or resource is not present in the system.\n",
      "B1500 SMU Link Error!\n",
      "VI_ERROR_LIBRARY_NFOUND (-1073807202): A code library required by VISA could not be located or loaded.\n",
      "B2201 Switching Matrix Link Error!\n",
      "VI_ERROR_LIBRARY_NFOUND (-1073807202): A code library required by VISA could not be located or loaded.\n"
     ]
    }
   ],
   "source": [
    "from starAutoProbe import *\n",
    "%matplotlib qt\n",
    "\n",
    "PMOSVDS = [{\"name\":'PMOS-VDS',\"startV\":0, \"endV\":-2,\"Vgs\":vgs,\n",
    "            \"chnSource\":'1',\"chnDrain\":'2',\"chnGate\":'3'} \n",
    "            for vgs in [0, -0.2, -0.4, -0.6, -0.8, -1.0, -1.2, -1.4, -1.6, -1.8, -2.0]]\n",
    " \n",
    "NMOSVDS = [{\"name\":'NMOS-VDS',\"startV\":0, \"endV\":2,\"Vgs\":vgs,\n",
    "            \"chnSource\":'4',\"chnDrain\":'2',\"chnGate\":'3'}\n",
    "            for vgs in [0, 0.2, 0.4, 0.6, 0.8, 1.0, 1.2, 1.4, 1.6, 1.8, 2.0]]\n",
    "FZ1 = {\"dies\":58,\"lines\":3,\"lineOffset\":0.342}\n",
    "FZ2 = {\"dies\":50,\"lines\":6,\"lineOffset\":0.249}\n",
    "\n",
    "\n",
    "autoTest(outputCurve,[*PMOSVDS,*NMOSVDS],**FZ2,positions=[1,2,3])\n",
    "closeIns()"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "starEnv",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.13"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
